﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace WpfApplication3
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        bool flag = false;
        Polyline polyline;
        private void canvas_MouseMove(object sender, MouseEventArgs e)
        {
            return;
            //if (flag == false)
            //    return;
            //polyline.Points[polyline.Points.Count - 1] = e.GetPosition(canvas);
            //Console.WriteLine("Move: " + polyline.Points[polyline.Points.Count - 1]);
        }
        private void canvas_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            return;
            //flag = true;
            //polyline = new Polyline();
            //polyline.Stroke = Brushes.Red;
            //polyline.StrokeThickness = 3;
            //this.canvas.Children.Add(polyline);
            //polyline.Points.Add(e.GetPosition(canvas));
            //if (polyline.Points.Count == 1)
            //    polyline.Points.Add(e.GetPosition(canvas));
            //Console.WriteLine("Left Down: " + e.GetPosition(canvas));
        }
        private void canvas_MouseRightButtonDown(object sender, MouseButtonEventArgs e)
        {
            return;
            //flag = false;
            //Console.WriteLine("Right Down: " + e.GetPosition(canvas));
        }

    }
}
